package com.kh.first.service;

import com.kh.first.dao.SettingDao;
import com.kh.first.pojo.SettingPojo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class SettingService {

    @Autowired
    private SettingDao settingDao;

    public Long saveSetting(SettingPojo pojo){
        return settingDao.saveSetting(pojo);
    }

    public Long saveSettingList(List<SettingPojo> list){
        return settingDao.saveSettingList(list);
    }

    public Long deleteSettingById(Long id){
        return settingDao.deleteSettingById(id);
    }

    public Long updateSettingById(SettingPojo pojo){
        return settingDao.updateSettingById(pojo);
    }

    public List<SettingPojo> getSettingList(SettingPojo pojo){
        return settingDao.getSettingList(pojo);
    }
    public Long countSettingList(SettingPojo pojo){
        return settingDao.countSettingList(pojo);
    }
}
